package com.edu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.user.domain.dto.DiseaseDTO;
import com.edu.user.domain.po.Disease;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DiseaseMapper extends BaseMapper<Disease> {
    @Select("SELECT id, name FROM disease_knowledge")
    List<DiseaseDTO> selectAllDiseaseIdsAndNames();
}
